package com.yhgarden.bbs.service.api.system;

import com.yhgarden.bbs.entity.system.SystemUser;
import com.yhgarden.bbs.entity.vo.user.UserLoginVo;
import com.yhgarden.bbs.model.response.BaseResponse;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface SystemUserService {

    BaseResponse createOrUpdate(HttpSession session, SystemUser systemUser) throws Exception;

    BaseResponse login(HttpServletRequest request, UserLoginVo systemUser) throws Exception;

    /**
     * 判断是否登录
     * @param request
     * @return
     * @throws Exception
     */
    BaseResponse judgeLogin(HttpServletRequest request) throws Exception;

    BaseResponse getById(String id);

    BaseResponse getByIdMoreDetail(String id);

    BaseResponse query(SystemUser systemUser);

    BaseResponse queryForList(SystemUser systemUser);

    BaseResponse delete(String id);

}
